﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 角色权限信息
	/// </summary>
	public class DbRolePriv
	{ 
		#region DbRolePriv
		/// <summary>
		/// 
		/// </summary>
		public DbRolePriv()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbRolePriv(Int32 pId)
		{
			this.pId = pId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbRolePriv(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["pId"]),out pId);
			this.rCode = Convert.ToString(dr["rCode"]);
			this.mCode = Convert.ToString(dr["mCode"]);
			this.actCode = Convert.ToString(dr["actCode"]);
			int.TryParse(Convert.ToString(dr["mId"]),out mId);
			
		}
		#endregion
		
		
		#region PId
		private Int32 pId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 PId
		{
			get{ return pId; }
			set{ pId= value; }
		}
		#endregion
		
		#region RCode
		private System.String rCode;
		/// <summary>	 
		/// 角色组编号
		/// </summary>
		public System.String RCode
		{
			get{ return rCode; }
			set{ rCode= value; }
		}
		#endregion
		
		#region MCode
		private System.String mCode;
		/// <summary>	 
		/// 菜单编号
		/// </summary>
		public System.String MCode
		{
			get{ return mCode; }
			set{ mCode= value; }
		}
		#endregion
		
		#region ActCode
		private System.String actCode;
		/// <summary>	 
		/// 允许操作权限编号
		/// </summary>
		public System.String ActCode
		{
			get{ return actCode; }
			set{ actCode= value; }
		}
		#endregion
		
		#region MId
		private Int32 mId;
		/// <summary>	 
		/// 用户Id
		/// </summary>
		public Int32 MId
		{
			get{ return mId; }
			set{ mId= value; }
		}
		#endregion

	}
}
